Many commands take an address value. An address argument value can have one of the following forms:
Decimal number | A number starting with 1-9 is a decimal number, for example 4095. |
Octal number | A number starting with 0 and a digit is an octal number, for example 033. |
Hex number | A number starting with 0x is a hexadecimal number, for example 0xffff8000. |
Binary number | A number starting with 0b is a binary number, for example 0b0100. |
Symbol | A word starting with a non-digit is looked up as a symbol in the kernel symbol table, and its address is the value; for example dk_open. |
Register | A word starting with "$" is taken as a register name, and the contents of the register as of the last interrupt is used as the argument value; for example $a2. |
Value and offset | A value plus or minus a number is a value, for example $a2-0x100 or dk_open+128. |
Some commands accept a range of addresses. A range can be written in one of two ways: